package b3.util
{
	public class Profile
	{
		//0, 无调试; 1, 本地调试; 2, 远程调试
		public static const DEBUG:int = 0;
		public static var VERSION:String = "1.4.0";
		
		public static const VIP_DAILY_PRESENT_ACTIVITY_ID:String = "UM120930130519341";
		public static const URL_VIP:String = "http://pay.qq.com/qzone/index.shtml?aid=game100659558.op";
		public static const URL_VIPYear:String = "http://pay.qq.com/qzone/index.shtml?aid=game100659558.yop&paytime=year";
		public static const URL_CDN:String = "http://app100659558.imgcache.qzoneapp.com/app100659558/";
		
		public static var URL_DevelopPage:String; 
		public static var URL_GamePage:String;
		public static var URL_MainResource:String;
		public static var URL_ConfigFile:String;
		public static var URL_Action:String;
		public static var URL_BuyGoods:String;
		public static var URL_GetToken:String;
		public static var URL_Music:String;
		
		//和后台通讯的密钥
		public static const serverSecret:String = "n.D1e.Pass10n";
		
		//人人信息
		public static var xn_sig_session_key:String;

		public function Profile()
		{
		}

		public static function setPlatform(pf:String):void
		{
			switch (pf)
			{
				case "pengyou":
					URL_DevelopPage = "http://app100659558.qzoneapp.com/";
					URL_GamePage = "http://apps.pengyou.com/100659558";
					URL_ConfigFile = URL_CDN + "config.xml" + "?version=" + VERSION;
					URL_MainResource = URL_CDN + "b3_resource1.swf" + "?version=" + VERSION;
					URL_Music = URL_CDN + "main.mp3" + "?version=" + VERSION;
				break;
				case "qzone":
					URL_DevelopPage = "http://app100659558.qzone.qzoneapp.com/";
					URL_GamePage = "http://rc.qzone.qq.com/myhome/100659558";
					URL_ConfigFile = URL_CDN + "config.xml" + "?version=" + VERSION;
					URL_MainResource = URL_CDN + "b3_resource1.swf" + "?version=" + VERSION;
					URL_Music = URL_CDN + "main.mp3" + "?version=" + VERSION;
				break;
				default:
					URL_DevelopPage = "http://127.0.0.1/b3qq/";
					URL_GamePage = "http://127.0.0.1/b3qq/";
					URL_ConfigFile = URL_DevelopPage + "preload/config.xml" + "?version=" + VERSION;
					URL_MainResource = URL_DevelopPage + "preload/b3_resource1.swf" + "?version=" + VERSION;
					URL_Music = URL_DevelopPage + "preload/main.mp3" + "?version=" + VERSION;
			}
			URL_GetToken = URL_DevelopPage + "actions/getToken.php";
			URL_BuyGoods = URL_DevelopPage + "actions/buyGoods.php";
			URL_Action = URL_DevelopPage + "actions/action.php";
		}

	}
}